import request from '@/utils/request'

// 查询运营管理应急处理列表
export function listAssets(query) {
    return request({
        url: '/server/assets/list',
        method: 'get',
        params: query
    })
}

// 查询运营管理应急处理详细
export function getAssets(assetsNum) {
    return request({
        url: '/server/assets/' + assetsNum,
        method: 'get'
    })
}

// 新增运营管理应急处理
export function addAssets(data) {
    return request({
        url: '/server/assets',
        method: 'post',
        data: data
    })
}

// 修改运营管理应急处理
export function updateAssets(data) {
    return request({
        url: '/server/assets',
        method: 'put',
        data: data
    })
}

// 删除运营管理应急处理
export function delAssets(assetsNum) {
    return request({
        url: '/server/assets/' + assetsNum,
        method: 'delete'
    })
}

// 导出运营管理应急处理
export function exportAssets(query) {
    return request({
        url: '/server/assets/export',
        method: 'get',
        params: query
    })
}

// 获取监控设备信息
export function queryAllMonitorInfos() {
  return request({
    url: '/server/assets/monitor/queryAll' ,
    method: 'get',
  })
}
